<html> <head> <title>修改成绩</title> </head>
 <form method="post">
{%csrf_token%}
|<a href="http://127.0.0.1:8000/insert">添加学生</a>
|<a href="http://127.0.0.1:8000/questu">查询学生</a>
|<a href="http://127.0.0.1:8000/sinsort">单科排名</a>
|<a href="http://127.0.0.1:8000/fraction">成绩分段</a>
|<a href="http://127.0.0.1:8000/list">返回</a>|
     <h4 style="text-align: center">学生信息</h4>
<table border=1 align="center">
<tr> <th>学号</th><th>姓名</th><th>语文成绩</th><th>数学成绩</th><th>英语成绩</th><th>物理成绩</th><th>化学成绩</th><th>总成绩</th>
</tr>
<tr>
<td>{{ update_student.num }}</td>
<td>{{ update_student.name }}</td>
<td>{{ update_student.chinese }}</td>
<td>{{ update_student.math }}</td>
<td>{{ update_student.english }}</td>
<td>{{ update_student.physics }}</td>
<td>{{ update_student.chemistry }}</td>
<td>{{ update_student.allscore }}</td>
</tr>
</table>
<hr />
<h4 style="text-align: center">修改</h4>
<table border=1 align="center">
<tr> <th>姓名</th><th>语文成绩</th><th>数学成绩</th><th>英语成绩</th><th>物理成绩</th><th>化学成绩</th><th>操作</th> </tr> <tr>
    <td><input name="name" type="text" value="{{ update_student.name }}"></td>
    <td><input name="chinese" type="number" min="0" max="150" value="{{ update_student.chinese }}"></td>
    <td><input name="math" type="number" min="0" max="150" value="{{ update_student.math }}"></td>
    <td><input name="english" type="number" min="0" max="150" value="{{ update_student.english }}"></td>
    <td><input name="physics" type="number" min="0" max="100" value="{{ update_student.physics }}"></td>
    <td><input name="chemistry" type="number" min="0" max="100" value="{{ update_student.chemistry }}"></td>
    <td><input type="submit" value="保存"> <input type="reset" value="重填"></td>
</tr>
</table>
</form>
</html>